﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Prism.Events;
using WPFNote.Utilities.Extensions;

namespace WPFNote.Views
{
    public partial class Index : UserControl
    {
        public Index()
        {
            InitializeComponent();
        }

        private void ScrList_OnPreviewMouseWheel(object sender, MouseWheelEventArgs e) {
            var eventArg = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta);
            eventArg.RoutedEvent = UIElement.MouseWheelEvent;
            eventArg.Source = sender;
            ScrList.RaiseEvent(eventArg);
        }
    }
}